/*
 * PrintThread.h
 *
 *  Created on: 2021年3月4日
 *      Author: Admin
 */

#ifndef JNI_USERFUN_PRINTTHREAD_H_
#define JNI_USERFUN_PRINTTHREAD_H_

#include "system/Thread.h"
#include "minizip/unzip.h"
#include <string>

class PrintThread: public Thread {
public:
	PrintThread();
	virtual ~PrintThread();
	bool threadLoop();
	bool startPrint(const char* pfile);
	int getPrintProgress();
	int getReminTime();
	int getTotalTime();
	const char* getFileName();
private:
	 unzFile zipfile;
	 unz_global_info global_info;
	 std::string filename;
	 FILE *fgcodeptr;

};

#endif /* JNI_USERFUN_PRINTTHREAD_H_ */
